﻿using System;
using System.Collections.Generic;
using System.Threading;

namespace SerialPortLibrary
{
    /// <summary>
    /// 发送命令类
    /// </summary>
    public class SendCommand
    {
        public List<SendCommand> cmdList = new List<SendCommand>();
        /// <summary>
        /// 整包接收完成信号
        /// </summary>
        public ManualResetEvent FullPackageSign = new ManualResetEvent(false);
        /// <summary>
        /// 命令对应的完成信号
        /// </summary>
        public ManualResetEvent CompleteSign = new ManualResetEvent(false);
        /// <summary>
        /// 命令是否成功执行
        /// </summary>
        public bool IsSuccess = false;
        /// <summary>
        /// 命令标识
        /// </summary>
        public string CommandId;
    }
}
